<template lang="">
  <div class="_flex-y _flex-a-stretch">
    <div class="_font-title">{{ sceneInfo.name }}</div>
    <div>创建时间：{{ $tool.dateStr(sceneInfo.created_date) }}</div>
  </div>
</template>
<script>
import toolAction from "@/tool/http/tool-action";

let thingsSceneApi = toolAction.init("things_scene");

export default {
  props: {
    sceneId: {
      type: String,
      required: true,
    },
  },
  data() {
    return {
      sceneInfo: {},
    };
  },
  mounted() {
    this.initScene();
  },
  methods: {
    initScene() {
      thingsSceneApi.view({ id: this.sceneId }).then((res) => {
        this.sceneInfo = res;
      });
    },
  },
};
</script>
<style lang=""></style>
